#ifndef OFFSPINBOX_H
#define OFFSPINBOX_H

#include "adaptivewidgets.h"

class OffSpinBox : public ASpinBox
{
    Q_OBJECT
public:
    enum Off
    {
        Min,
        Max
    };
    Q_ENUM(Off)
    explicit OffSpinBox(const Off &type, const QString &suffix = nullptr, QWidget *parent = nullptr);

signals:
protected:
    QString textFromValue(int value) const override;
    int valueFromText(const QString &text) const override;
private:
    const Off m_type;
    const QString m_suffix;
};

#endif // OFFSPINBOX_H
